package com.fusion.lottery.classify.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fusion.lottery.classify.service.ClassifyService;
import com.fusion.utils.json.Msg;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 彩票分类接口
 * @author louis
 *
 */
@Api(description="彩票分类接口")
@RestController
@RequestMapping(value = "/classify")
public class ClassifyController {
	
	@Autowired
	private ClassifyService classifyService;
	
	@ApiOperation(value="获取所有分类", notes="获取所有分类")
    @GetMapping()
    public Msg list() {
		return classifyService.list();
    }
    
}